#include <stdio.h>
#include <string.h>

struct INFO {
    char name[100];
    int age;
    char sex;
};

typedef struct STUDENT {
    struct INFO inf;    // 结构体的嵌套
    
    float score;
    int id;
}Stu;

int main()
{
//    Stu s = {"zhang3", 12, 'F', 88.88, 10};
    
    Stu ss;

    ss.inf.age = 13;
    ss.inf.sex = 'M';
    strcpy(ss.inf.name, "Li4");
    
    ss.score = 70;
    ss.id = 88;

    Stu* p = &ss;

    p->inf.age = 14;
    p->inf.sex = 'F';
    strcpy(p->inf.name, "Wang5");
    p->id = 666;
    p->score = 100;

    return 0;
}




